<template>
<div class="container" id="printing">
    <div class="printing-title">
        <Divider>
            <h2> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;印刷耗材及配件&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;</h2>
        </Divider>
    </div>
    <div class="printing-item">
        <ul>
            <li v-for="(item,i) in printingIMg" :key="i">
                <img :src="item" alt="">
                <p v-if="show==1" class="period">账期</p>
                <p>北方宏锐海德堡印刷机系列配件-增强飞达万向节</p>
                <span>¥ 259.00</span>
            </li>
        </ul>
    </div>
</div>
</template>

<script>
export default {
    data() {
        return {
            printingIMg: {
                pic1: require('@/assets/banner2.png'),
                pic2: require('@/assets/banner2.png'),
                pic3: require('@/assets/banner2.png'),
                pic4: require('@/assets/banner2.png'),
                pic5: require('@/assets/banner2.png'),
                pic6: require('@/assets/banner2.png'),
                pic7: require('@/assets/banner2.png'),
                pic8: require('@/assets/banner2.png'),
                pic9: require('@/assets/banner2.png'),
                pic10: require('@/assets/banner2.png'),
            },
            show: '1', // 账期显示条件
          
        }
    },
}
</script>

<style lang="less" scoped>
.printing-item {
    margin: 30px 0 20px;

    ul {
        display: flex;
        display: -webkit-flex;
        display: -ms-flex;
        display: -moz-flex;
        flex-wrap: wrap;
        justify-content: space-between;

        li {
            width: 224px;
            height: 295px;
            background-color: #f8f8f8;
            margin-bottom: 20px;
            text-align: center;
            padding: 17px 24px;
            box-sizing: border-box;
            position: relative;
            cursor: pointer;
            
            img {
                width: 157px;
                height: 157px;
                margin-bottom: 40px;
            }

            .period {
                list-style: none;
                width: 50px;
                height: 20px;
                background-color: #F3622F;
                color: #fff;
                font-size: 12px;
                border-radius: 100px;
                line-height: 20px;
                position: absolute;
                top: 50%;
                left: 50%;
                margin-left: -25px;
                margin-top: 40px;

            }

            p {
                font-size: 12px;
                color: #333;
                font-family: PingFangSC-Regular;
            }

            span {
                color: #D92410;
                position: absolute;
                bottom: 15px;
                left: 50%;
                transform: translateX(-50%);
            }
        }
        li:hover {
            top: -10px;
            box-shadow: 0px 0px 20px #ccc;
            transition: all .1s linear;
            -moz-transition: all .1s linear;
            /* Firefox 4 */
            -webkit-transition: all .1s linear;
            /* Safari 和 Chrome */
            -o-transition: all .1s linear;
            border: 1px solid #D92410;
        }
    }

}
</style>
